package org.caiotte.mapper;



import org.caiotte.domain.Employee;
import org.caiotte.query.EmployeeQuery;

import java.util.List;

/**
 * employee  mapper层
 */
public interface EmployeeMapper {
    //保存一条记录
    void save(Employee employee);

    //修改一条记录
    void update(Employee employee);

    //删除一条记录
    void deleteById(Long id);

    //查询所有
    List<Employee> loadAll();

    //查询一条
    Employee loadById(Long id);

    //查询总条数
    Long queryCount(EmployeeQuery query);

    //查询当前页的数据
    List<Employee> queryData(EmployeeQuery query);

    //批量删除
    void batchRemove(List<Long> ids);
}
